public class Factorial{
	public static void main(String args[]){
		int sum=0;
		int i,n=1;
		for(i=1;i<=20;i++){
			n*=i;
			sum+=n;
		}System.out.println("the sum is : " + sum);
	}
}